# -*- coding:utf-8 -*-
import requests
def send_msg(url,msg):
    json_data = {
        "msg_type": "text",
        "text": {"content": msg,
                 }
        }
    return requests.post(url=url, json=json_data)

if __name__ == "__main__":
    url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3873cf2e-6e2c-4584-b6b2-329d4382e120"
    msg = "我是机器人消息"
    send_msg(url, msg)
